package bo.gustavo.scrapper.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "url")
public class Url {

	private Long id;

	private String appTitle;

	private String appUrl;

	private String appCategory;

	private boolean isPaid;

	public Url() {

	}

	public Url(String appTitle, String appUrl, String appCategory, boolean isPaid) {
		this.appTitle = appTitle;
		this.appUrl = appUrl;
		this.appCategory = appCategory;
		this.isPaid = isPaid;
	}

	@Id
	@Column(name = "id")
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "app_title")
	public String getAppTitle() {
		return appTitle;
	}

	public void setAppTitle(String appTitle) {
		this.appTitle = appTitle;
	}

	@Column(name = "app_category")
	public String getAppCategory() {
		return appCategory;
	}

	public void setAppCategory(String appCategory) {
		this.appCategory = appCategory;
	}

	@Column(name = "app_url")
	public String getAppUrl() {
		return appUrl;
	}

	public void setAppUrl(String appUrl) {
		this.appUrl = appUrl;
	}

	@Column(name = "is_paid")
	public boolean isPaid() {
		return isPaid;
	}

	public void setPaid(boolean isPaid) {
		this.isPaid = isPaid;
	}

	@Override
	public String toString() {
		return "Url [id=" + id + ", appTitle=" + appTitle + ", appUrl=" + appUrl + ", appCategory=" + appCategory + "]";
	}
}
